package util;

import lombok.Cleanup;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ConfigUtil {
    private static final Properties conf = new Properties();
    static {
     InputStream in = ConfigUtil.class.getClassLoader().getResourceAsStream("application.yml");
       try {
           conf.load(in);
       }
       catch (IOException e) {
           e.printStackTrace();
       }
    }

    public static String getProp(String key) {
        return conf.getProperty(key);
    }
}
